/*
package com.collections;

import jdk.nashorn.internal.parser.JSONParser;

import java.util.HashMap;
import java.util.Map;

public class ObjectforMap {

    public static class User{
        private String name;
        private String password;
        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }
    }

    public static void main(String[] args) {
        User user = new User();
        user.setName("zhangsan");
        user.setPassword("123");
        Map map = new HashMap();
        map.put("0",user);
        User ob = (User)map.get("0");
        System.out.println(ob.getName());
    }
}
*/
